package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShopeeidlistinginfoMapper;
import com.ruoyi.system.domain.Shopeeidlistinginfo;
import com.ruoyi.system.service.IShopeeidlistinginfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * shopee印尼商品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-30
 */
@Service
public class ShopeeidlistinginfoServiceImpl implements IShopeeidlistinginfoService 
{
    @Autowired
    private ShopeeidlistinginfoMapper shopeeidlistinginfoMapper;

    /**
     * 查询shopee印尼商品信息
     * 
     * @param itemid shopee印尼商品信息ID
     * @return shopee印尼商品信息
     */
    @Override
    public Shopeeidlistinginfo selectShopeeidlistinginfoById(String itemid)
    {
        return shopeeidlistinginfoMapper.selectShopeeidlistinginfoById(itemid);
    }

    /**
     * 查询shopee印尼商品信息列表
     * 
     * @param shopeeidlistinginfo shopee印尼商品信息
     * @return shopee印尼商品信息
     */
    @Override
    public List<Shopeeidlistinginfo> selectShopeeidlistinginfoList(Shopeeidlistinginfo shopeeidlistinginfo)
    {
        return shopeeidlistinginfoMapper.selectShopeeidlistinginfoList(shopeeidlistinginfo);
    }

    /**
     * 新增shopee印尼商品信息
     * 
     * @param shopeeidlistinginfo shopee印尼商品信息
     * @return 结果
     */
    @Override
    public int insertShopeeidlistinginfo(Shopeeidlistinginfo shopeeidlistinginfo)
    {
        return shopeeidlistinginfoMapper.insertShopeeidlistinginfo(shopeeidlistinginfo);
    }

    /**
     * 修改shopee印尼商品信息
     * 
     * @param shopeeidlistinginfo shopee印尼商品信息
     * @return 结果
     */
    @Override
    public int updateShopeeidlistinginfo(Shopeeidlistinginfo shopeeidlistinginfo)
    {
        return shopeeidlistinginfoMapper.updateShopeeidlistinginfo(shopeeidlistinginfo);
    }

    /**
     * 删除shopee印尼商品信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopeeidlistinginfoByIds(String ids)
    {
        return shopeeidlistinginfoMapper.deleteShopeeidlistinginfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除shopee印尼商品信息信息
     * 
     * @param itemid shopee印尼商品信息ID
     * @return 结果
     */
    @Override
    public int deleteShopeeidlistinginfoById(String itemid)
    {
        return shopeeidlistinginfoMapper.deleteShopeeidlistinginfoById(itemid);
    }
}
